/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.scene.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * 端口管理Entity
 * @author dh
 * @version 2017-04-17
 */
public class ScenePort extends DataEntity<ScenePort> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 端口名称
	private String networkId;		// 网络ID
	private String fixedIp;		// 固定IP
	
	public ScenePort() {
		super();
	}

	public ScenePort(String id){
		super(id);
	}

	@Length(min=1, max=64, message="端口名称长度必须介于 1 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=64, message="网络ID长度必须介于 1 和 64 之间")
	public String getNetworkId() {
		return networkId;
	}

	public void setNetworkId(String networkId) {
		this.networkId = networkId;
	}
	
	@Length(min=1, max=64, message="固定IP长度必须介于 1 和 64 之间")
	public String getFixedIp() {
		return fixedIp;
	}

	public void setFixedIp(String fixedIp) {
		this.fixedIp = fixedIp;
	}
	
}